package com.engine4cloud.tdf.supervision.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.engine4cloud.tdf.common.data.datascope.TdfBaseMapper;
import com.engine4cloud.tdf.supervision.dto.query.SpHelpDepartQueryDTO;
import com.engine4cloud.tdf.supervision.dto.query.SpHelpQueryDTO;
import com.engine4cloud.tdf.supervision.dto.result.SpHelpResultDTO;
import com.engine4cloud.tdf.supervision.entity.SpHelpEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SpHelpMapper extends TdfBaseMapper<SpHelpEntity> {
    IPage<SpHelpResultDTO> pageList(Page<SpHelpEntity> page, @Param("dto") SpHelpQueryDTO dto);

    IPage<SpHelpResultDTO> deptPageList(Page<SpHelpEntity> page, @Param("dto") SpHelpDepartQueryDTO dto, @Param("deptIdList") List<Long> deptIdList);
}